<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改商品页面</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
<%--  <script type="text/javascript" src="../js/jquery-1.8.3.js" ></script>--%>
<%--  <script>--%>
<%--  $(function (){--%>
<%--      $("#file").change(function (){--%>
<%--        --%>
<%--        var pic = $("#file").val("");--%>
<%--        pic = pic.substring(pic.lastIndexOf("/")+1);--%>
<%--        $("#pic").prop("src",pic);--%>
<%--      })--%>
<%--  })--%>
<%--</script>--%>
</head>

<body>
<div class="wrap">
  <!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="#" title="注销">注销</a></div>
  </div>
      <div class="login logns produce">
          <form auction="${pageContext.request.contextPath}/auction/updateById" enctype="multipart/form-data" method="post">
        <h1 class="blues">拍卖品信息</h1>
          <dl>
            <dd >
                <input text="test" name="updateAuction.auctionId" value="${selectAuction.auctionId}" hidden="hidden">
              <label>名称：</label>
              <input type="text" class="inputh lf" value="${selectAuction.auctionName}" name="updateAuction.auctionName" />
              <div class="xzkbg spbg lf"></div>
            </dd>
            <dd>
              <label>起拍价：</label>
              <input type="text" class="inputh lf" value="${selectAuction.auctionStartPrice}" name="updateAuction.auctionStartPrice" />
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>底价：</label>
              <input type="text" class="inputh lf" value="${selectAuction.auctionUpset}" name="updateAuction.auctionUpset" />
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>开始时间：</label>
              <input type="text" class="inputh lf" value="${selectAuction.auctionStartTime}" name="updateAuction.auctionStartTime" />
              <div class="lf red laba">格式：2011-05-05 12:30:00</div>
            </dd>
            <dd>
              <label>结束时间：</label>
              <input type="text" class="inputh lf" value="${selectAuction.auctionEndTime}" name="updateAuction.auctionEndTime" />
              <div class="lf red laba">格式：2011-05-05 12:30:00</div>
            </dd>
            <dd class="dds">
              <label>描述：</label>
              <textarea  cols="" rows="" class="textarea" value="${selectAuction.auctionDesc}" name="updateAuction.auctionDesc">嘿嘿</textarea>
            </dd>
            <dd>
              <label>修改图片：</label>
              <div class="lf salebd"><a href="#"><img id="pic" src="${pageContext.request.contextPath}/images/${selectAuction.auctionPic}" width="100" height="100" /></a></div>
               <input name="updateAuction.auctionPic" id="file" type="file" class="marg10" value="" onchange="testChange()"/>
            </dd>
            <dd class="hegas">
                <input name="" type="submit" value="保 存" class="spbg buttombg buttombgs f14 lf buttomb" />
                <input name="" type="submit" value="取 消" class="spbg buttombg buttombgs f14 lf buttomb" />
                
            </dd>
          </dl>
          </form>
    </div>
<!-- main end-->
<!-- footer begin-->

</div>
 <!--footer end-->
 

</body>
</html>